﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShowEnteredText
{
    public partial class ShowEnteredText : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblEnteredText.Text = string.Empty;
        }

        protected void btnShow_Click(object sender, EventArgs e)
        {
            txtEnteredText.Text = txtText.Text;
            string enteredText = Server.HtmlEncode(txtText.Text);
            lblEnteredText.Text = enteredText;
        }
    }
}